package com.example.springboot_system.utils;

import lombok.AllArgsConstructor;
import lombok.Data;

//用来封装统一返回客户端的JSON格式
@Data

public class ResponseResult {
    private Integer state;//状态
    private String message;//消息
    private Object data;
    private Object data1;
    private Object data2;

    public ResponseResult(Integer state, String message) {
        this.state = state;
        this.message = message;
    }

    public ResponseResult(Integer state, Object data) {
        this.state = state;
        this.data = data;
    }

    public ResponseResult(String message, Object data) {
        this.message = message;
        this.data = data;
    }

    public ResponseResult() {

    }

    public ResponseResult(Integer state, String message, Object data) {
        this.state = state;
        this.message = message;
        this.data = data;
    }

    public ResponseResult(Integer state, String message, Object data, Object data1) {
        this.state = state;
        this.message = message;
        this.data = data;
        this.data1 = data1;
    }

    public ResponseResult(Integer state, String message, Object data, Object data1, Object data2) {
        this.state = state;
        this.message = message;
        this.data = data;
        this.data1 = data1;
        this.data2 = data2;
    }
}
